<% @title = "Registrierung" %>
<h2>Registrieren</h2>
<%= form_for @user do |f| %>
    <% if @user.errors.any? %>
        <ul>
          <% @user.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <%end %>
        </ul>
    <% end %>
    <p>
      <%= f.label :firstname, "Vorname" %>
      <%= f.text_field :firstname %>
    </p>
    <p>
      <%= f.label :lastname, "Nachname" %>
      <%= f.text_field :lastname %>
    </p>
    <p>
      <%= f.label :email, "Email" %>
      <%= f.text_field :email %>
    </p>
    <p>
      <%= f.label :password%>
      <%= f.password_field :password %>
    </p>
    <p>
      <%= f.label :password_confirmation %>
      <%= f.password_field :password_confirmation %>
    </p>
    <p>
      <%= f.submit %>
    </p>


<% end %>